//
//  main.m
//  oc_4
//
//  Created by 楼楚 on 15/9/9.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
{
    NSString *name;
    int age;
    float height;
}
- (void) sleep;
- (void) study;
@end

@implementation Person

- (void) sleep
{
    NSLog(@"sleep!");
}

- (void) study
{
    NSLog(@"study!");
    
}
@end

@interface hehehe : Person

{
    NSString *sex;
}
- (void) setAge:(int)newAge;
- (void) setName:(NSString *)newName;
//getAge
- (int) getAge;
- (NSString *) getName;
- (void) setSex:(NSString *)newSex;


@end

@implementation hehehe
- (void) setAge:(int)newAge;
{
    age = newAge;
}
- (void) setName:(NSString *)newName;
{
    name = newName;
}

- (void) setSex:(NSString *)newSex;
{
    sex = newSex;
}

@end
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
        hehehe *hh = [[hehehe alloc]init];
        
        [hh sleep];
        [hh study];
        
    }
    return 0;
}
